package com.ruoyi.constant.v3;

/**
 * 处室标识枚举
 */
public enum CsbsV3Enum {

//    KYQ("KYQ", "矿业权处"),
//    KBC("KBC", "矿保处"),
//    XFC("XFC", "修复处"),
//    ZFJ("CWC", "财务处");
    KYQ("KYQ", "矿产资源勘查和开发利用"),
    KBC("KBC", "矿产资源储量"),
    XFC("XFC", "矿山地质环境保护与土地复垦"),
    CWC("CWC", "矿业权占用费和出让收益缴纳");


    private String code;
    private String desc;

    CsbsV3Enum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public String getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

    public static String getDescByCode(String code) {
        for (CsbsV3Enum value : CsbsV3Enum.values()) {
            if (value.getCode().equals(code)) {
                return value.getDesc();
            }
        }
        return null;
    }

    public static boolean ifExist(String csbs) {
        for (CsbsV3Enum value : CsbsV3Enum.values()) {
            if (value.getCode().equals(csbs)) {
                return true;
            }
        }
        return false;
    }

}
